package com.example.service.impl;

import com.example.entity.Menu;
import com.example.entity.Subject;
import com.example.mapper.MenuMapper;
import com.example.service.MenuService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author： wzz
 * @date： 2021-10-27 15:33
 */
@Service
public class MenuServiceImpl implements MenuService {

    @Resource
    private MenuMapper menuMapper;

    @Override
    public List<Menu> queryAll() {
        return menuMapper.queryAll();
    }

    @Override
    public List<Subject> queryByChapterNo(String menu_topic,String book_name) {
        return menuMapper.queryByChapterNo(menu_topic,book_name);
    }
}
